<div class="row-fluid listcontent">
    <div class="span12">
        <div class="portlet box grey">
            <div class="portlet-title">
                <div class="caption"><i class="icon-cogs"></i>举报列表</div>
<!--                <div class="actions" id="orderaline">-->
<!--                    <div class="btn-group">-->
<!--                        <a class="btn blue" href="#" data-toggle="dropdown">-->
<!--                            <i class="icon-cogs"></i>&nbsp;&nbsp;操作-->
<!--                            <i class="icon-angle-down"></i>-->
<!--                        </a>-->
<!--                        <ul class="dropdown-menu pull-right">-->
<!--                            <li><a id="info_delete"><i class="icon-trash"></i>删除用户</a></li>-->
<!--                            <li><a id="info_forbidden"><i class="icon-lock"></i>禁用用户</a></li>-->
<!--                            <li><a id="info_recovery"><i class="icon-unlock"></i>恢复用户</a></li>-->
<!--                        </ul>-->
<!--                    </div>-->
<!--                </div>-->
            </div>
            <div class="portlet-body">
                <div class="dataTables_wrapper form-inline">
                    <div class="row-fluid">
                        <div class="span12">
                            <form id="searchform" action="{$action}" method="post">

                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="举报业务:  "/>
                                    <select name='search[]' style="width: 90px;margin-right: 10px">
                                        <option value="-2">全部</option>
                                        <?php foreach ($report_business as $key => $vo) { ?>
                                            <option value="{$key}"
                                                <?php if (isset($search[0]) && ($search[0] == $key)) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left"><label>
                                        <input type="button" class="btn blue searchsubmit" value="搜索:  "/>
                                        <input type="text" name="search[]" placeholder="用户昵称|用户真实姓名"
                                               aria-controls="sample_2" class="m-wrap"
                                               value="{$search[1]?$search[1]:''}" style="height:30px"/></label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:10px">
                                    <label>
                                        <input type="button" class="btn blue search" value="提交"/>
                                    </label>
                                </div>
                            </form>
                        </div>
                    </div>
                    <table id="basicinfo" class="table table-hover table-bordered">
                        <thead>
<!--                        <th style="width:8px;"><input type="checkbox"/></th>-->
                        <th>ID</th>
                        <th>举报业务</th>
                        <th>举报人</th>
                        <th>被举报人</th>
                        <th>举报时间</th>
                        <th>举报名称</th>
                        <th>处理人</th>
                        <th>处理时间</th>
                        <th style="width:110px;">操作</th>
                        </thead>
                        <tbody>
                        {if(count($list)>0)}
                        {volist name='list' id='val'}
                        <tr class="odd gradeX ">
<!--                            <td><input type="checkbox" class="checkboxes" name="id" value="{$val.report_id}"/></td>-->
                            <td>{$val.report_id}</td>
                            <td>{$report_business[$val['report_business']]}</td>
                            {if $val['user_attestation']==2}
                            <td>{$val.user_rel_name}</td>
                            {else /}
                            <td>{$val.user_username}</td>
                            {/if}
                            {if $val['user_attestation1']==2}
                            <td>{$val.user_rel_name1}</td>
                            {else /}
                            <td>{$val.user_username1}</td>
                            {/if}
                            <td>{$val.report_time}</td>
                            <td>{$val.report_name}</td>
                            <td>{$val.nickname}</td>
                            <td>{$val.report_start_time}</td>
                            <td>
                                {if($val['report_status']==1)}
                                <a class="btn mini blue examine" style="margin-top:5px" data-id='{$val.report_id}'><span>处理</span></a>
                                {/if}
                                <a class="btn mini purple detail" style="margin-top:5px" data-id='{$val.report_id}'><span>查看</span></a>
                                <a class="btn mini green " style="margin-top:5px" data-id='{$val.report_cover_user_id}'><span>被举报人历史</span></a>
                            </td>
                        </tr>
                        {/volist}
                        {else/}
                        <tr>
                            <td colspan="16"><span style="margin-left: 50px">暂无数据</span></td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                    <input type="hidden" name="page" value="{$page?$page:''}">
                </div>
            </div>
        </div>
        {if(!empty($list))}
        {$list->render()}
        {/if}
    </div>
</div>